package com.beigai.imessage.common.except;

/**
 * Created by xxl on 2017/5/16.
 * 通用异常类
 */
public class MessageException extends Exception {
    public static final String UNKNOWMESSAGETYPE = "1001";
    private String errorCode;
    private String errorMessage;

    public MessageException(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
